﻿using System;

namespace Cpu6502.Opcodes
{
    public class PHA : Opcode
    {
        public PHA()
        {
            this.CpuCycles = 3;
            this.AddressType = CPU.AddressType.Implied;
        }

        public override void Execute()
        {
            CPU.Stack.Push(CPU.Registers.A);           
        }
    }
}
